<template>
    <div class="loading" v-show="HomeStore.isLoading">
        <div class="loadingImg">
            <img src="@/assets/img/full-screen-loading.gif" alt="">
        </div>
    </div>
</template>

<script setup>
import useHomeStore from '@/stores/modules/homeStore';

const HomeStore = useHomeStore()
</script>

<style lang="less" scoped>
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0px;
    left: 0;
    right: 0;
    bottom: 50px;
    z-index: 999;
    background-color: rgba(0, 0, 0, 0.2);

    .loadingImg {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100px;
        height: 100px;
        background: url('@/assets/img/loading-bg.png') 0 0 / 100% 100%;

        img {
            width: 70px;
            height: 70px;
            margin-bottom: 10px;

        }
    }
}
</style>